put class Color as a separate file; added first implementation of gen_js_file2 function in gen_photos.py