cleqn up appjs a bit