answers to some js questions