Fixing tabs to be consistent in JS file