Hide upload and edit for non JavaScript users

Bug: 51414
Change-Id: I797fbdf2c8922f1bee4c887f7025dee9b9a01185
Merge "Hide upload and edit for non JavaScript users"