reconfigure javascript so precompile assets works