Got the javaScript working.
Got it to post back to the same page for the rectangle.