Use Angular instead of jQuery to ajax and Show message as console