moved script back onto page