Fixing naming conventions and adding logal javascript file