add some js frontend tests using qunit/pavlov/sinon