Attempt at a JS toolkit reusing common functionality I need on the web