turn.js implementation