Some more attempts with javascript