mapping detect at jQuery or window