src/Dialogs.js: remove '.js' from require path

see 46d3a1ca218a54b91c6e8e44c7ca2d22873b01eb