add javascript ftdetect