small and simple javascript exercises