refactor javascript
update angular-ui library