Turbolinks compatibility (for 0.3)

#158
Fixes for alertify.js 0.3.