Added inline styles and scripts. Added file_exists() to static writer