Update ntropy.js

Simplified checkMobile() code.