Issue with anonymous define in curljs