added index without jQuery plug-in