How To Test A Javascript Code