Added utility function to get js files w ajax