open.js (an older version)