add jquery, setTimeout to globals; add jquery