fixed application js code