Update script.js

updated with correct push() functionality. Do push() on firebase references, not on returned objects