Fix #31 by cancelling draggable behavior on interactive elements. Also, delete ununsed code and fix various missing var keywords.