getting js modules to work