structure all on js and config