fix for js issue on asset precompile