Correct galerie's javacript call