Added a java script file for all js functions