Hardware store in Geylang area. It's called expanding foam or polyurethane spray. If you want black one can order online.
http://www.joshsfrogs.com/catalog/product_...ndifoam-sealant
Be careful when working with this, give it lots of space to expand if not your glass will crack.