fixing javascript build