CMS-2607 Create tests for Javascript classes in portal. Added simple script running.