consistent indentation
fix some jslint messages
pass response to callback