adding js file and cleaning up my language