Fix issues with profile.js

Remove re-definition of a variable, add radix parameter to all calls to parseInt (because JavaScript might assume the strings are not in decimal in some circumstances and it's good practice to always include the radix parameter) and comment a line that defines a variable that is never used.
Merge pull request #11 from mark-otaris/patch-2

Fix issues with profile.js