PHP + JS code samples