Pushed code into subdirectory.

Fixed invalid JS.