tryNumber now return offset

Also some changes to avoid callback hell.
Can now add an onclick function to a button