refactor require firebird.js