get precompiled js working on client side