Revert "Submitting hw4.js"

This reverts commit bdf89e8f8a68a6131874571e0cd3c98f517b8b3e.
Resubmitting hw4.js