add offline js