Shared framework

Fixed AJAX for shared environments