feat(js): improved JS boilerplate