added new ajax example and improved dependency injection prototype
minor code reformat