consolidate some code
consolidate some code

garyservin/turtleblocksjs,rodibot/turtleblocksjs,tchx84/turtleblocksjs,walterbender/turtleblocksjs,hemantkasat/turtleblocksjs,tradzik/turtleblocksjs,tradzik/turtleblocksjs,Daksh/turtleblocksjs,rodibot/turtleblocksjs,hemantkasat/turtleblocksjs,tradzik/turtleblocksjs,tchx84/turtleblocksjs,i5o/turtleblocksjs,walterbender/turtleblocksjs,hemantkasat/turtleblocksjs,tchx84/turtleblocksjs,walterbender/turtleblocksjs,Daksh/turtleblocksjs,garyservin/turtleblocksjs,rodibot/turtleblocksjs,garyservin/turtleblocksjs,i5o/turtleblocksjs,i5o/turtleblocksjs,Daksh/turtleblocksjs