add jpanel javascript