Fix up javascript a little bit.