Added support for sending values from PHP to JS