CMS-2644 Implement createUrl methods for javascript portal.
Experimenting with createImageUrl.