refactored JS and server URLs for Cooker