Add imul function if missing. Compatibility for IE