Updated documentation for API methods
Added History object to Js factory