fix #997, JS has "static" methods too, apparently