An attempt at making a Javascript application