OSMify is a project mainly written in JavaScript, it's free.
A bookmark for overlaying OSM tiles on commercial mapping APIs
More information about this code can be found here:
http://blog.johnmckerrell.com/2007/12/31/new-version-of-osmify-bookmarklet/
I'm releasing this code for anyone to use under whatever license they want.
John McKerrell 2011