purl from gem to js