// Adding the same javascript settings twice will cause a recursion error, // we avoid the problem by checking if the javascript has already been added.