added JS stuff