added unit tests for JS and HELPER with JASMINE/RSPEC