added java script
fixed scripts