javascript bugs fixed; layout crude but finished