Use proper asset path in javascript files