Added a hacked isDevice function needed by newer engine.js.
Changed the removal of points to look for strings instead of booleans.