fixing the Head example JS File