Moved dependency on some js files to MATA

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>