Changed code to not use jQuery/Zepto dependencies