Adding missing colon.
Split up the javascript a bit.