Fix some bug in tools.js
When a non-function variable passed to Tools.get as the third argument, it would not take it as the default value correctly.

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