fix typo error

Change-Id: I86392f3f00300faf46235ec8eed3c7c99374bee8
fix bugs when coverting HTML to AMD module

Change-Id: I184a70015115ffc63bfec54cdf6e985b44006658