Added minor corrections and jQuery