generate version attribute with grunt; removed function onPageVisibilityChanged