If String Not Empty Javascript Function Call