javascript init
ajax implementation for featute type