Fix errors in js => parse float height and width