added if statement for td with .selected
fixed syntax error
Merge pull request #17 from beck410/select_object

Select object