moved Javascript / error stuff