Fix bug with $ in JS