three.js template on middleman