Javascript source restored to previous state