How can I get melted plastic to stick to glass?

I’m trying to attach a very thin layer of plastic to a sheet of glass by heating it to a melting point. There are always spots that don’t attach. Can I spray the glass with something to make it more “attractive” to the hot plastic?