star function and ajax working.