Modified JS code style to use spaces instead of tabs