Yeah, I came across this one before. It is really odd because some browsers interpret this as you wanting to parse it in base 8. Consider the following article:
http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C85006A6604
basically, you have to tell the parser to use base 10 numbers:
parseInt('08', '10');