Overdue self calling function for js snippet.