A simple Javascript gallery OOP