Updated application js to avoid loading errors in js files