adding some scripts and splitting content in fragments