Added functions js file