begin with Javascript functionality