fixed crashed js after precompiling assets