switch to hackney/jsx, simplify and add tests