Wrap types into requrejs format and make static part of the JS stack