changed js loading order for production