loading working
better js mantainable code. kill index.js