Convert image_helper to javascript
Merge pull request #652 from lonelyplanet/chee/cs→js-imagehelper

Convert image_helper to javascript