According to this documentation, Task object is not yet supported.
This means that currently you will not be able to use createRecord method to create your record from the javascript side.
You don't have the choice to use Apex for this I'm afraid.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…