add javascript preview backend