scores basic js code, requires to add filtering to data