saved user vote if they are not logged in, fixed my pagination func
separated out my js files