modified droite.js