fix the layout of the JS app. Add a real test to javascript tests