new requirejs support - fixes #2