broke js into multiple files for clarity, adding methods to candy