Create Javascript Function With Multiple Parameters