Add an javascript file for function test