updated tod d to angular 1.3, cleaned JS library