Make forward compatible for require.js and add get_flags method