cleaned up proposals js