javascript enhancements