WIP: making js part work