Added bettermap support and replaced ejs with sjs