re-wrote node tests, styled code, moved browser demo in html folder