[jmdb] Making script a module