added offline js