frame.js cleanups