Javascript Function Parser