Fix JS for deploy