revised application js