sample code as I learn javascript syntax, best practices, etc.