fixed so that javascript is in own file