Added some stuff to make it work on Github Pages