Ok, I found the mistake, what happened was that be...
# suitescript
i
Ok, I found the mistake, what happened was that before trying to do all this I tried to create a library, so in the suitelet i had
define([..., './library']
and
function(..., lib)
I realize about this and remove the reference to the script and everything worked!