simple javascript widget