Using native functions when possible.
Added touch support.
Removed unused jquery.
Made it a bower package.