git mv environment{,_browser}.js, move logic from index to environment