Added my own javascript function snippet.