committing some js enhancements