using setTimeout instead of requiring another plugin for counter
Small reformatting