Applied the use of external JS files