Fixing javascript style issues.