Upgraded layout.engine.js to v0.8.2