added manifest reference to popup-sprite
added a check for offline state. Changes life cycle of library
added new offline verification sequencing
added checks for undefined object
doc tweak