Update main.js

parseInt should correct my issue.  It appears that when it pulls from local storage it makes it into a string, this will force it back to an int.