completing js