Guideline for JavaScript testing