Removed errors in jquery calling