Update pinit_main.js

parseInt returns strange results because c.id is already an integer.
Merge pull request #39 from bobbiejwilson/master

remove extra parseInt call; thanks, @bobbiejwilson!