Consolidate declarations in ready function
Add line terminator semicolon