Corrected the check on the parameter "element" in the function
"getPositionToWrappee".
Renamed a variable and corrected a typo in the "scrollToElement"
function.