Moved from the root to a directory "js"

And add newline at end of file