adding test javascript