Inlined a few dependent functions.
Replaced jQuery with newest Zepto. Code refactoring.