(Kwaak's solution) Fixed preview
not allowing external scripts and css from a relative directory