remove legacy from application js