Serperation of script and styles

simpler usage and smaller file