Alternate javascript form