Fix compatibility issue between Javadocs and require.js