rename mock.js to portable.js