remove hardcoded table names; fix js typo

fix issue#39 with mal timestamps being incorrectly selected