Adding javascript methods and learning backbone and angular js