loading bars and animation

dao.js file created where common functions are stored. Bars have been
fixed. Player loading animation created. Loading bars created.
Animation between views and some bugs fixed