jQuery presence check for chrome app