More PHP to JS testing