Java script for Velvet Room