How To Use A Function In Javascript