java script not working and adding icons