added code for NgMessage to work
need to update angularjs to 1.3 and above
for ngMessage to work