add director (router js lib) to frontend