[TASK] moving js library handling into content controller; rendering