Refine some codes in jable.js
If templateHead & templateBody had not been set, jable would generate each template according to the data structure received from server.

Signed-off-by: 核心力量 <kernelforce@gmail.com>