warmed up for the afternoon rewriting bob with javascript