Small js refactoring
Bunch actions of requests