Fixed javascript codestyle errors.