Move small javascript to coffe file