Bookmarklet javascript beginnings. Cleaned up code, still need to fix some routing issues.