Some js syntax fix

use === instead of ==
add ; at the  of method 
and user . notation  for call.