added params.base for ajax version of the engine