spaceflight: Modularized the js and css