moved clerestory js to a separate file