JavaScript interview exercises