Fixed apime check for dashboard.js file

also added changes to JS formatting in JS Documentation.md