Remove hard dependency on require-js and add support for node