custom js file including improved