Example on Using HAMLE with javascript