Fix javascript style issues