Spike out working javascript

Need to template the table better