Rename the functions in tools.js to little case.

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