javascript extension and mysql2 config