Merge pull request #38 from metakeule/master

Code changes to let gopherjs be used as library