templated the js importing methods