A smart JavaScript library