mixed content in javascript