Clean up javascript, update quote handler and inline elements