Condensed node and browser testing into one file. Fixed node require
paths.