How to avoid conflicts with libraries on the same page