basic js for interaction