Describe steps that I currently follow :
there is the ARchitect Desktop Environment (ADE) which allows you to simulate the behaviour of your JS code in a normal browser.
Please take a look at our documentation for this.
Please note that this will not simulate any graphics, just the loading/click/callback behaviours.
I have read debugging steps from link but not useful for me