Mainly for security purposes. Removed on('ready') function has been replace, most of deprecated ':' selectors have been removed (some :first selectors remain insted find() functions since I was unsure of the correct way to deal with them)
This reverts commit dca7570b32.
dca7570b32