Added supporting javascript