Fixed syntax error on the ready function