If String Not Empty Javascript Function Is Not Defined