Revert c9f2182..60f8fa1

This rolls back to commit c9f21823899fe996df294e4d30b8c5b1a80937c6.
Revert "Revert c9f2182..60f8fa1"

This reverts commit 268afdf99295ff23d5bcc6b03f7a92eff1e7f28d.
moved margin initialization to cpative.js instead offileworker.js