Fixed problem with javascript -1 (do not work with big numbers)