Loop control css + js