PHP for JavaScript