CMS-3351 Write tests for server side javascript. Added requirejs tests in javascript.