Run JavaScript code in PHP