Consolidate hub js boilerplate