Remove trailing white spaces

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Use !== for js comparisons

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>