Make sure to ensure correct message id is present in the code, and that you are adding return false; after the code. Now test and verify everything is working as expected!
Congratulations! You’ve successfully implemented “Using Javascript” functionality of Icegram Engage Pro plan.