javascript bugs & additional css for https support