fix bug in adding external script <scrip src =""></script>