New functional test for javascript
New javascript implemented in base.html, all test working