Hypermedia Abstraction Mapper in Javascript