adding base 10 to parseInt to silence jslint