js enhancement