Update designer.js

removed old code that was commented