Updates for JSHint errors in mithril