Update Controller.js

Modified the object detection regex