Fix assetPath for ajax requests