xpush library for javascript