added: lib/frmae.js