How To Create A Javascript Function With Parameters