performance optimization
updated js