Fix bug in jQuery refactor to local website.
Fix JS bug caused by theme folder refactor.