Solved require.js issues for server deployment