Added docssa (still needs tidying) and added js libs directory functionality