JS and flat library added