Syntax Error Unexpected End Of Input Javascript