Made Molpy.SandDug be Molpy.Boosts['Sand'].bought, also added some semicolons.

You needed the semicolons after the function declarations because they were still variable declarations. JS is weird like that.