fix common js issues
build test