Cristian: optimized js library