cant see the error, change consol.log to alert.