Fix minor javascript syntax errors

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
Quit button was stretched instead of aligned to the right.

Note: Only tested in 3.10 but should work on older versions as well.

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>