expanded js import macro, used for most fns now

also auto-remove ruby-inserted hs imports if not used