Added index for non-jQuery version