missing semi-colons in JS