Add base url variable to js

Additionally, add some usage instructions to the README