Can you write a function in javascript that takes a mathematical function written as text `f(x)=2x+3` for the first argument, and takes a number for x in the second argument and returns the result of the operation?