Better js organization