Moved js code to lib directory

This is to verify if codeclimate grabs the javascript file