updated javascript file for page ready