Fix some jslint detected errors in app code