Modal experiment with javascript prototype