[Docs] Push fix

Fixed a bug in Push tutorial where javascript didn't always parse json