created code for creating a poll, deploying js for the same