Fixed issue with making jQuery work - (properly substitute
getElementById by jQuery)