Add starts_with prototype to js strings.
Bug fixes.