Developed JS functions