Javascript (client-side and node) and  PHP Snippets