Fixed deletion of files due to unscaped javascript text. Aesthetical & usability improvements