How To Create Function In Javascript