js enhancements