fixing issue with undefined method
switching to angular winjs in npm