converted coffescript to use camelCase
use URI.js for coffeescript