New profile javascript done

New profile POST can now be sent. Backend not yet done.