Clear html and javascript before compile