Check if func is really a function
Keep the Client JS value around for later use