fix js - init prob

using coffeescript now