Fix the bug of missing </script> and importing google javascript api