[projects-page] create a class the good js way, using prototype.