Adding iterator support

Adding simple counter to label elements with class collectionLabel and
html variable %iteration%
Also fixed bug with conditional support that didnt check for console
object.