fixed jquery, updated jquery version
added counter, works in console and jquery