DataManager: removed dependance on jQuery; added comments; added more tests