Starting to split out Javascript.