javascript glue