pre-require.js

check in this version before a major js code refactor