[titlesnarfer] use strict and fix revealed bugs