Fixes to code wrong returns and halding of those in the jQuery