Determine webAppPath from window.location

See #47. Have fun!