Added ngcontroller Javascript snippet