custom javascript only for new objects