updated javascript styling