UI. Better JS Practices