fixed javascript error. converted tabs to spaces