Php Array Find String Javascript Methods Syntax Tree Maker