adding in Javascript support