fix name of function we're using for js vars
Add all JS functions for getting view via AJAX and document them.
inline docs improvements for views class