updated requirejs support - fixes #2