reorganize js files
add some isnumber tests