js practice with angular and backbone