Update pinit_main.js

parseInt returns strange results because c.id is already an integer.