cleaned up inline JS example.