add js file for patterns server page