Fixed JSHint errors in mithril