Javascript error: "Expected identifier, string or number"