add new requirejs support - fixes #8