javascript based web control