Fixing JS style errors