Only call autotime() on the correct elements
Merge pull request #787 from pafcu/mainjsfix

Only call autotime() on the correct elements