Some example regarding angular and javascript