javascript form cosmetics