Fix local mode by deferring jQuery-using init

Auditors: eater, cbhl