Starting with angular js

some improvements useing angular js