Changed back to .ready() since .on() was not calling preSelect()