Refactored scaffold javascript
Fixes "HttpStatus" import