JavaScript and PHP code for URL builder for Facebook Share link