Doc fixes

Fixed some javascript and added some text in docs.