Fixing JS bugs before deploying