Update designer.js

fixing problems