Fixed #9: Removed requirejs and simplified the JS code