Adding docs and fixing jquery stuff