edit javascript