big refactor of js, got link to recipes working