receive strings from js