Added js polyfills, updated demos and directory structure

Signed-off-by: Eric Lobdell <eric@ericlobdell.io>