added ability to use jscr as a module