Fixed javascript style errors