Refactor get.js
Add optional require parsing support