Add jquery.js considering offline case