Refactored js code and merged to the master

req size for what?