remove nodejs dependency from browser compiler code