Modified to use angular 1.3.0-rc.4